.TH E1432_RESET_LBUS 3 E1432
.SH NAME
.nf
e1432_reset_lbus \- Reset or enable Local Bus
e1432_get_lbus_reset \- Return reset status of local bus
.fi
.IX e1432_reset_lbus(3) 3
.IX e1432_get_lbus_reset(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_reset_lbus(E1432ID hw, SHORTSIZ16 ID, SHORTSIZ16 state)
SHORTSIZ16 e1432_get_lbus_reset(E1432ID hw, SHORTSIZ16 ID,
                                SHORTSIZ16 *state)
.cE
.SH DESCRIPTION

\fIe1432_reset_lbus\fR controls the reset state of the Local Bus.
\fBE1432_RESET_LBUS_ON\fR puts it into reset and
\fBE1432_RESET_LBUS_OFF\fR allows the Local Bus to function.

\fIe1432_get_lbus_reset\fR returns the reset state of the Local Bus,
into the location pointed to by \fIstate\fR.

This parameter is a "global" parameter.  It applies to an entire E1432
module rather than to one of its channels.  The \fIID\fR parameter is
used only to identify which module the function applies to, and all
channels in that module will report the same value for this parameter.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fIstate\fR must be either \fBE1432_RESET_LBUS_ON\fR or
\fBE1432_RESET_LBUS_OFF\fR.

At the start of a measurement that uses local bus, it is important to
properly reset the local bus before starting the measurement.  Before
resetting the local bus, make sure all E1432 modules are no longer
running any previous measurement, by calling
\fIe1432_reset_measure\fR.  Then the local bus interface on all VXI
cards must be reset, and then they must all be un-reset.  The order in
which the cards must be reset and un-reset is important.  After all
that, the measurement can be started with \fIe1432_init_measure\fR.

.SH "RESET VALUE"
After a reset the Local Bus is set to \fBE1432_RESET_LBUS_OFF\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_set_lbus_mode
.ad
